﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Text;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DALDWF.DAUserControl
{
    public partial class DALabel : Label
    {
        public DALabel()
        {
            InitializeComponent();
            
        }
        
        protected override void OnPaint(PaintEventArgs e)
        {
            //base.OnPaint(e);
            SolidBrush sb = new SolidBrush(ForeColor);
            e.Graphics.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
            e.Graphics.DrawString(Text, Font, sb, Margin.Left, Margin.Top, StringFormat.GenericTypographic);

        }
    }
}
